package com.example.springboot.mapper;

import com.example.springboot.controller.request.BaseRequest;
import com.example.springboot.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author:
 * @Description: TODO
 * @DateTime: 2022/11/25 16:31
 **/
@Mapper
public interface UserMapper {
    /*查询数据库中所有数据*/
    List<User> list();

    List<User> listBycondition(BaseRequest baseRequest);

    void sava(User user);

    void update(User user);

    User getById(Integer id);

    void delete(Integer id);
}
